/*
 * CSS for the jquery.dlmenu.js jQuery space-saver menu plugin. I removed the no-js stuff - VRS doesn't work without JS,
 * no need for fallback. Also removed the demo stuff. Added a few styles to cover extra bits that I needed.
 */

/* AGW extra styles */
.dl-separator {
    border-bottom: 1px solid #888;
}
.dl-icon {
    display: inline-block;
    position: relative;
    margin-right: 4px;
    width: 16px;
    color: #26639B;
}
.dl-icon.dl-disabled {
    color: #999999;
}
.dl-noicon {
    padding-left: 20px;
}
.dl-iconImage {
    display: inline-block;
    margin: -2px 8px 0 -10px;
    vertical-align: bottom;
}
.dl-menuwrapper li.dl-disabled a {
    color:  #AAAAAA;
    cursor: default;
}

/* Common styles of menus */

.dl-menuwrapper {
	width: 100%;
	max-width: 300px;       /* If you change this then you need to change the setting of cssMenuWidth in vrs.Menu */
	float: left;
	position: fixed;
    -webkit-perspective: 1000px;
	-moz-perspective: 1000px;
	perspective: 1000px;
	-webkit-perspective-origin: 50% 200%;
	-moz-perspective-origin: 50% 200%;
	perspective-origin: 50% 200%;
}

.dl-menuwrapper:first-child {
	margin-right: 100px;
}

.dl-trigger {
    cursor: pointer;
}
.dl-menuwrapper button {
	background: #fff;
	border: 1px solid #aaa;
	width: 16px;
	height: 16px;
	text-indent: -900em;
	overflow: hidden;
	position: relative;
	cursor: pointer;
	outline: none;
}

.dl-menuwrapper button:hover,
.dl-menuwrapper button.dl-active,
.dl-menuwrapper ul {
    background: #fff;
}

.dl-menuopen {
    z-index: 1;         /* Need this for FF46 */
    border: 1px solid #888;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.3);
}

.dl-menuwrapper button:after {
	content: '';
	position: absolute;
	width: 68%;
	height: 2px;
    background: #888;
	top: 2px;
	left: 16%;
    box-shadow:
        0 4px 0 #888,
        0 8px 0 #888;
}

.dl-menuwrapper ul {
	padding: 0;
	list-style: none;
	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	transform-style: preserve-3d;
}

.dl-menuwrapper li {
	position: relative;
}

.dl-menuwrapper li a {
	display: block;
	position: relative;
    padding: 10px 15px;
    color: #2E74B5;
    text-decoration: none; /* AGW */
	outline: none;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

.dl-menuwrapper li a:hover {
    background: #f0f0f0;
    border-top: 1px solid #d0d0d0;
    border-bottom: 1px solid #d0d0d0;
}
/* AGW */
.dl-menuwrapper li.dl-back > a:hover {
    padding-left: 36px;
    background: #555;
    color: #fff;
    border-top: 1px solid #666;
    border-bottom: 1px solid #666;
}

.dl-menuwrapper li.dl-back > a {
	padding-left: 36px;
    background: #444;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
    color: #fff;
}

.dl-menuwrapper li.dl-back:after,
.dl-menuwrapper li > a:not(:only-child):after {
	position: absolute;
	top: 1em;
	font-family: 'icomoon';
	speak: none;
	-webkit-font-smoothing: antialiased;
	content: "\e000";
    color: #26639B;
}

.dl-menuwrapper li.dl-back:after {
	left: 10px;
	color: white;
	-webkit-transform: rotate(180deg);
	-moz-transform: rotate(180deg);
	transform: rotate(180deg);
}

.dl-menuwrapper li > a:after {
	right: 10px;
    color: #000;
}

.dl-menuwrapper .dl-menu {
    font-size: 0.9em;
	margin: 0;
	position: relative;
	width: 100%;
	opacity: 0;
	pointer-events: none;
	-webkit-transform: translateY(10px);
	-moz-transform: translateY(10px);
	transform: translateY(10px);
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	backface-visibility: hidden;
}

.dl-menuwrapper .dl-menu.dl-menu-toggle {
	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
	transition: all 0.3s ease;
}

.dl-menuwrapper .dl-menu.dl-menuopen {
	opacity: 1;
	pointer-events: auto;
	-webkit-transform: translateY(0px);
	-moz-transform: translateY(0px);
	transform: translateY(0px);
}

/* Hide the inner submenus */
.dl-menuwrapper li .dl-submenu {
	display: none;
}

/*
When a submenu is openend, we will hide all li siblings.
For that we give a class to the parent menu called "dl-subview".
We also hide the submenu link.
The opened submenu will get the class "dl-subviewopen".
All this is done for any sub-level being entered.
*/
.dl-menu.dl-subview li,
.dl-menu.dl-subview li.dl-subviewopen > a,
.dl-menu.dl-subview li.dl-subview > a {
	display: none;
}

.dl-menu.dl-subview li.dl-subview,
.dl-menu.dl-subview li.dl-subview .dl-submenu,
.dl-menu.dl-subview li.dl-subviewopen,
.dl-menu.dl-subview li.dl-subviewopen > .dl-submenu,
.dl-menu.dl-subview li.dl-subviewopen > .dl-submenu > li {
	display: block;
}

/* Dynamically added submenu outside of the menu context */
.dl-menuwrapper > .dl-submenu {
	position: absolute;
	width: 100%;
	top: 50px;
	left: 0;
	margin: 0;
}
